<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{:config('base.company_name')}制单打印</title>
<style media="print">
	.menu{display:none;}
	.list td,.list th{ height:26px; line-height:26px; text-align:center;}
	.list th{ font-weight:bold;}
</style>
<style>
	.list td,.list th{ height:26px; line-height:26px; text-align:center;}
	.list th{ font-weight:bold;}
</style>
<body>
<div class="menu">
	<input type="button" value="打 印" onclick="window.print()"/><br><br>
</div>
<div class="pageContent">
	<table width="100%" border="0">
	<tr><td>
		<table width="100%" border="1" style="border-collapse:collapse;" class="list">
			<tr>
				<th rowspan="3"><img src="{$sInfo['ori_pic']}" style="height:120px;"></th>
				<th colspan="8" style="font-size:24px; height:40px;">{:config('base.company_name')}裁床单</th>
			</tr>
			<tr>
				<th colspan="2">裁床日期：</th>
				<td colspan="2">{$oInfo['caichuang_over_time']?date("Y-m-d",$oInfo['caichuang_over_time']):""}</td>
				<th colspan="2">裁剪负责人：</th>
				<td colspan="2">{:arrayGet($systemUserKV, $oInfo['caichuang_user_id'], '')}</td>
			</tr>
			<tr>
				<th>订单号</th>
				<td>{$oInfo['client_ordernum']}</td>
				<th>款号</th>
				<td>{$oInfo['sku']}</td>
				<th>裁床号</th>
				<td colspan="3">{$oInfo['caichuang_chuanghao']}</td>
			</tr>
		</table>
	</td></tr>
	<tr><td>
		<table width="100%" style="{(count($ouList)>24)?'page-break-after:always;':''}">
		<tr><td width="50%" valign="top">
			<table width="100%" border="1" style="border-collapse:collapse; float:left;" class="list">
				<tr>
					<th>扎号</th>
					<th>件数</th>
					<th>尺码</th>
					<th style="line-height:20px;">
					完成数</th>
					<th style="line-height:20px;">
					工号/姓名</th>
				</tr>
				<?php foreach($ouList as $k=>$v){
					if($k >= count($ouList)/2) continue;
				?>
				<tr>
					<td>{$v['zhahao']}</td>
					<td>{$v['jianshu']}</td>
					<td>{$v['size_name']}</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
				<?php }?>
			</table>
		</td><td width="50%" valign="top">
			<table width="100%" border="1" style="border-collapse:collapse; float:right" class="list">
				<tr>
					<th>扎号</th>
					<th>件数</th>
					<th>尺码</th>
					<th style="line-height:20px;">
					完成数</th>
					<th style="line-height:20px;">
					工号/姓名</th>
				</tr>

				<?php foreach($ouList as $k=>$v){
					if($k < count($ouList)/2) continue;
				?>
				<tr>
					<td>{$v['zhahao']}</td>
					<td>{$v['jianshu']}</td>
					<td>{$v['size_name']}</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
				<?php }?>

			</table>
		</td></tr></table>
	</td></tr>
	<tr><td>
		<table width="100%" border="1" style="border-collapse:collapse;" class="list">
			<tr>
				<th colspan="14" style="font-size:24px; height:40px;">数量跟踪</th>
			</tr>
			<tr>
				<td colspan="2">下单数</td>
				<td colspan="2">裁剪</td>
				<td colspan="2">备注</td>
				<td colspan="2">车缝数</td>
				<td colspan="2">备注</td>
				<td colspan="2">尾部出货</td>
				<td colspan="2">备注</td>
				</tr>
			<tr>
				<td width="7%">总数</td>
				<td width="7%">{:array_sum(array_column($osList, 'order_count'))}</td>
				<td width="7%">总数</td>
				<td width="7%">{:array_sum(array_column($osList, 'shicai_jianshu'))}</td>
				<td width="14%" colspan="2" rowspan="{:count($osList)+1}">{$oInfo['caichuang_remark']}</td>
				<td width="7%">总数</td>
				<td width="7%"></td>
				<td width="14%" colspan="2" rowspan="{:count($osList)+1}">{$oInfo['chejian_remark']}</td>
				<td width="7%">总数</td>
				<td width="7%"></td>
				<td width="15%" colspan="2" rowspan="{:count($osList)+1}" style="text-align:left;padding-left:5px;">入存：<br>
					出存：<br>
					次品：</td>
				</tr>
			{foreach $osList as $k=>$v }
			<tr>
				<td>{$v['size_name']}</td>
				<td>{$v['order_count']}</td>
				<td>{$v['size_name']}</td>
				<td>{$v['shicai_jianshu']}</td>
				<td>{$v['size_name']}</td>
				<td></td>
				<td>{$v['size_name']}</td>
				<td></td>
			</tr>
			{/foreach}

		</table>
	</td></tr>
	</table>
</div>
</body>
</html>